<!--
 * @Description: KeyboardEvent
 * @Author: rendc
 * @Date: 2025-11-06 09:40:28
 * @LastEditors: rendc
 * @LastEditTime: 2025-11-06 09:51:51
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>KeyboardEvent</title>
  <style>
    body {
      margin: 0;
      height: 1000px;
      border: 1px solid red;
      /* 盒子模型 */
      /* 边框 */
      /* 内容 */
    }
  </style>
</head>
<body>
  <div class="app">
    <input type="text" onkeydown="inputKeyDown(event)">
  </div>
</body>
<script>
  // 事件绑定
  // 事件处理程序
  function inputKeyDown(event){
    console.log('🤡 CC - inputKeyDown - event:', event);
  }
  
</script>
</html>